// 点位相关
import request from '@/utils/request'

// 点位搜索
export const pointSearch = ({ regionId = '', name = '', pageIndex = 1, pageSize = 10 }) => request({
  url: '/vm-service/node/search',
  params: {
    regionId, pageIndex, pageSize, name
  }
})
// 点位详情
export const pointInfo = (id) => request({
  url: `/vm-service/node/vmList/${id}`
})
// 删除点位
export const delPoint = (id) => request({
  url: `/vm-service/node/${id}`,
  method: 'DELETE'
})
// 新增点位
export const daddPoint = (data) => request({
  url: `/vm-service/node`,
  method: 'POST',
  data
})
// 编辑点位
export const montifyPoint = (data) => request({
  url: `/vm-service/node/${data.id}`,
  method: 'PUT',
  data
})
